﻿using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Infrastructure.Test
{
    public class TestOption
    {
        public string? Option1 { get; set; }
        public string? Option2 { get; set; }
    }

    public class UseOption
    {
        private TestOption _option;
        public UseOption(IOptions<TestOption> option)
        {
            _option = option.Value;
        }

        public TestOption GetOption => _option;
    }
}
